package com.haima.ziliao.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haima.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.haima.common.core.domain.BaseEntity;

/**
 * 资料管理对象 p_ziliao
 * 
 * @author hima
 * @date 2024-10-21
 */
public class PZiliao implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 所属年级 */
    @Excel(name = "所属年级")
    private Long nianji;

    /** 所属学科 */
    @Excel(name = "所属学科")
    private Long xueke;

    /** 所属学期 */
    @Excel(name = "所属学期")
    private Long cetype;

    /** 所属版本 */
    @Excel(name = "所属版本")
    private Long banben;

    /** 所属类型 */
    @Excel(name = "所属类型")
    private Long type;

    /** 年份 */
    @Excel(name = "年份")
    @TableField("yearStr")
    private String yearStr;

    /** 下载地址 */
    @Excel(name = "下载地址")
    private String path;

    /** 页数 */
    @Excel(name = "页数")
    @TableField("pageNum")
    private Integer pageNum;

    /** 是否免费 */
    @Excel(name = "是否免费")
    private String free;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal jiage;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("addTime")
    private Date addTime;

    /** MD5 */
    @Excel(name = "MD5")
    private String md5;

    /** 会员免费 */
    @Excel(name = "会员免费")
    private String needvip;
    @Excel(name = "文件大小")
    @TableField("fileSize")
    private String fileSize;

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setNianji(Long nianji) 
    {
        this.nianji = nianji;
    }

    public Long getNianji() 
    {
        return nianji;
    }
    public void setXueke(Long xueke) 
    {
        this.xueke = xueke;
    }

    public Long getXueke() 
    {
        return xueke;
    }
    public void setCetype(Long cetype) 
    {
        this.cetype = cetype;
    }

    public Long getCetype() 
    {
        return cetype;
    }
    public void setBanben(Long banben) 
    {
        this.banben = banben;
    }

    public Long getBanben() 
    {
        return banben;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setYearStr(String yearStr) 
    {
        this.yearStr = yearStr;
    }

    public String getYearStr() 
    {
        return yearStr;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setPageNum(Integer pageNum)
    {
        this.pageNum = pageNum;
    }

    public Integer getPageNum()
    {
        return pageNum;
    }
    public void setFree(String free) 
    {
        this.free = free;
    }

    public String getFree() 
    {
        return free;
    }
    public void setJiage(BigDecimal jiage) 
    {
        this.jiage = jiage;
    }

    public BigDecimal getJiage() 
    {
        return jiage;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setMd5(String md5) 
    {
        this.md5 = md5;
    }

    public String getMd5() 
    {
        return md5;
    }
    public void setNeedvip(String needvip) 
    {
        this.needvip = needvip;
    }

    public String getNeedvip() 
    {
        return needvip;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("nianji", getNianji())
            .append("xueke", getXueke())
            .append("cetype", getCetype())
            .append("banben", getBanben())
            .append("type", getType())
            .append("yearStr", getYearStr())
            .append("path", getPath())
            .append("pageNum", getPageNum())
            .append("free", getFree())
            .append("jiage", getJiage())
            .append("addTime", getAddTime())
            .append("md5", getMd5())
            .append("needvip", getNeedvip())
            .append("fileSize", getFileSize())
            .toString();
    }
}
